<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    
    <%!
    	public String OutStr(){
    		String str="测试";
    		return str;
    }
    %>
    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>out测试</title>
</head>
<body>

<%out.println("out输出测试！"); %>

<br>

<%=OutStr() %>

</body>
</html>